package com.dms.modules.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("community_audit")
@ApiModel(value = "社区审核", description = "内容审核记录")
public class CommunityAudit {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("ID")
    private Long id;
    
    @ApiModelProperty("目标类型：1-帖子，2-评论")
    private Integer contentType;
    
    @ApiModelProperty("目标ID")
    private Long contentId;
    
    @ApiModelProperty("状态：0-待审核，1-通过，2-拒绝")
    private Integer status;
    
    @ApiModelProperty("拒绝原因")
    private String remark;
    
    @ApiModelProperty("审核人ID")
    private Long auditorId;
    
    @ApiModelProperty("审核时间")
    private LocalDateTime auditTime;
    
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
} 